<?php
namespace App\Common\Lib\Think;

use App\Common as com;
use think\facade\Env;

class Define extends com\Lib\LibBase {
	public static $tempPath;
	public static $appPath;

	/**
	 * 获取TempPath，临时目录
	 * @return string
	 */
	public static function getTempPath(  ) {
		if( self::$tempPath === null ){
			self::$tempPath = Env::get('runtime_path'). 'temp' . DIRECTORY_SEPARATOR;
		}
		return  self::$tempPath;
	}

	/**
	 * 获取TempPath
	 * @return string
	 */
	public static function getAppPath(  ) {
		if( self::$appPath === null ){
			self::$appPath = Env::get('app_path');
		}
		return  self::$appPath;
	}
}
